import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import configuration from './config/database.config';
import { TypeOrmModule } from '@nestjs/typeorm';
import { ConfigModule } from '@nestjs/config';
import {VideoModule} from './video/video.module'

@Module({


  imports: [
    TypeOrmModule.forRoot({
      type: 'mysql',
      host: 'localhost',
      port: 3306,
      username: 'root',
      password: '930104',
      database: 'beo',
      entities: ['dist/**/*.entity.js'],
      synchronize: true
    }),
    VideoModule

  ],



  controllers: [AppController],


  providers: [AppService],
})
export class AppModule {}
